<div class="title"><?php echo $pageTitle ?></div>
<hr />
<div id="form_entry_lokasi_action">
<form action="<?php echo site_url("master/add_regional/".$add_page); ?>" method="post">
<?
        switch ($add_page) {
            case "reg" :
							
?>
<table width="100%">
    <tr>
        <td align="right" width="110">Kode Region :</td><td><input type="text" name="code" value=""/></td>        
    </tr>
    <tr>
        <td align="right">Nama Region :</td><td><input type="text" name="display_name" value=""/></td>        
    </tr>
    <tr>
        <td align="right">Summary :</td><td><textarea name="summary" cols="30" rows="10"></textarea></td>        
    </tr>
    <tr>
        <td align="right">Latitude :</td><td><input type="text" name="latitude" value=""/></td>        
    </tr>
    <tr>
        <td align="right">Longlatitude :</td><td><input type="text" name="longlatitude" value=""/></td>        
    </tr>     
    <tr>
        <td align="right"></td><td><input type="submit" name="submit" value="submit"/></td>        
    </tr>               
</table>

<?
                break;
            case "prov" :
?>
<table width="100%">
    <tr>
        <td align="right" width="120">Kode Propinsi :</td><td><input type="text" name="code" value=""/></td>        
    </tr>
    <tr>
        <td align="right">Nama Propinsi :</td><td><input type="text" name="display_name" value=""/></td>        
    </tr>
    <tr>
        <td align="right">Region :</td><td>
            <select name="region_id">
            	<option value=""> Pilih Region </option>
                <? foreach ($arrayreg as $row){ ?>
                <option value="<?=$row->code; ?>"> <?=$row->display_name; ?> </option>
                <? } ?>
            </select>
		</td>        
    </tr>    
    <tr>
        <td align="right">Summary :</td><td><textarea name="summary" cols="30" rows="10"></textarea></td>       
    </tr>
    <tr>
        <td align="right">Latitude :</td><td><input type="text" name="latitude" value=""/></td>        
    </tr>
    <tr>
        <td align="right">Longlatitude :</td><td><input type="text" name="longlatitude" value=""/></td>        
    </tr>     
    <tr>
        <td align="right"></td><td><input type="submit" name="submit" value="submit"/></td>        
    </tr>               
</table>
<?			
				break;
            case "kab" :
?>
<table width="100%">
    <tr>
        <td align="right" width="200">Kode Kabupaten :</td><td><input type="text" name="code" value=""/></td>        
    </tr>
    <tr>
        <td align="right">Nama Kabupaten :</td><td><input type="text" name="display_name" value=""/></td>        
    </tr>
    <tr>
        <td align="right">Propinsi :</td><td>
            <select name="provinsi_id">
            	<option value=""> Pilih Propinsi </option>
                <? foreach ($arrayreg as $row){ ?>
                <option value="<?=$row->code; ?>"> <?=$row->display_name; ?> </option>
                <? } ?>
            </select>
		</td>        
    </tr>
    <tr>
        <td align="right">Tertinggal 158 :</td><td>
            <select name="is_tertinggal">
            	<option value="0"> Pilih </option>
                <option value="1"> Ya </option>
                <option value="0"> Tidak </option>
            </select>
		</td>        
    </tr>
    <tr>
        <td align="right">Tertinggal 84 :</td><td>
            <select name="is_tertinggal84">
            	<option value="0"> Pilih </option>
                <option value="2"> Ya </option>
                <option value="0"> Tidak </option>
            </select>
		</td>        
    </tr>              
    <tr>
        <td align="right">Summary :</td><td><textarea name="summary" cols="30" rows="10"></textarea></td>       
    </tr>
    <tr>
        <td align="right">Latitude :</td><td><input type="text" name="latitude" value=""/></td>        
    </tr>
    <tr>
        <td align="right">Longlatitude :</td><td><input type="text" name="longlatitude" value=""/></td>        
    </tr>     
    <tr>
        <td align="right"></td><td><input type="submit" name="submit" value="submit"/></td>        
    </tr>               
</table>
<?			
				break;
            case "kec" :
?>
<table width="100%">
    <tr>
        <td align="right" width="120">Kode Kecamatan :</td><td><input type="text" name="code" value=""/></td>        
    </tr>
    <tr>
        <td align="right">Nama Kecamatan :</td><td><input type="text" name="display_name" value=""/></td>        
    </tr>
    <tr>
        <td align="right">Kabupaten :</td><td>
            <select name="kabupaten_id">
            	<option value=""> Pilih Kabupaten </option>
                <? foreach ($arrayreg as $row){ ?>
                <option value="<?=$row->code; ?>"> <?=$row->display_name; ?> </option>
                <? } ?>
            </select>
		</td>        
    </tr>    
    <tr>
        <td align="right">Summary :</td><td><textarea name="summary" cols="30" rows="10"></textarea></td>       
    </tr>
    <tr>
        <td align="right">Latitude :</td><td><input type="text" name="latitude" value=""/></td>        
    </tr>
    <tr>
        <td align="right">Longlatitude :</td><td><input type="text" name="longlatitude" value=""/></td>        
    </tr>     
    <tr>
        <td align="right"></td><td><input type="submit" name="submit" value="submit"/></td>        
    </tr>               
</table>
<?			
				break;
            case "desa" :
?>
<table width="100%">
    <tr>
        <td align="right" width="120">Kode Desa :</td><td><input type="text" name="code" value=""/></td>        
    </tr>
    <tr>
        <td align="right">Nama Desa :</td><td><input type="text" name="display_name" value=""/></td>        
    </tr>
    <tr>
        <td align="right">Kecamatan :</td><td>
            <select name="kecamatan_id">
            	<option value=""> Pilih Kecamatan </option>
                <? foreach ($arrayreg as $row){ ?>
                <option value="<?=$row->code; ?>"> <?=$row->display_name; ?> </option>
                <? } ?>
            </select>
		</td>        
    </tr>    
    <tr>
        <td align="right">Summary :</td><td><textarea name="summary" cols="30" rows="10"></textarea></td>       
    </tr>
    <tr>
        <td align="right">Latitude :</td><td><input type="text" name="latitude" value=""/></td>        
    </tr>
    <tr>
        <td align="right">Longlatitude :</td><td><input type="text" name="longlatitude" value=""/></td>        
    </tr>     
    <tr>
        <td align="right"></td><td><input type="submit" name="submit" value="submit"/></td>        
    </tr>               
</table>
<?			
				break;
				
		}
?>
</form>
</div>